<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSoftwareVersionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('software_versions', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name',50);
            $table->string('version',50);
            $table->string('manufacturer',50);
            $table->timestamp('release_date')->nullable();
            $table->timestamp('test_date')->nullable();
            $table->timestamp('register_date')->nullable();
            $table->string('MD5');
            $table->string('update_MD5')->nullable();
            $table->timestamp('install_date')->nullable();
            $table->timestamp('update_date')->nullable();
            $table->string('ftp_address',50)->nullable();
            $table->string('ftp_username',50)->nullable();
            $table->string('ftp_password',50)->nullable();
            $table->integer('status')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('software_versions');
    }
}
